#!/bin/bash
git status
printf 'do you want to commit? [y/n] '
read answer
if [ $answer == 'y' ] 
then 
  echo "-----------------git add...-----------------"
  git add .
  printf 'please enter commit massage: '
  read commitMsg
  echo "-----------------git commit...-----------------"
  git commit -am "'$commitMsg'"
  echo "-----------------git push...-----------------"
  git push
  echo '-----------------done-----------------'
else
  echo '-----------------cancel-----------------'
fi
